package com.chaodev.base.dao;

import com.chaodev.base.model.Training;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TrainingDao {

    /**
     * 返回培训课程信息的实体类集合
     * @param training
     * @return
     */
    List<Training> queryDataList(Training training);

    /**
     * 根据ID获取培训课程信息对象
     * @param id
     * @return
     */
    Training findDataById(Integer id);

    /**
     * 更新培训课程信息实体类
     * @param training
     */
    void updateDataById(Training training);

    /**
     * 增加培训课程信息实体类
     * @param training
     */
    void insertData(Training training);

    /**
     * 根据ID删除对应的培训课程实体类
     * @param id
     */
    void deleteDataById(Integer id);

    int updateVisitNum(Training training);
}
